// worker独有的引入js
importScripts('./fib.js');

// worker
self.onmessage = event => {
    const num = event.data; // 获取主线程的传递值
    const calcNum = fib(num);
    self.postMessage(calcNum);
}
